package com.shanzhu.beadhouse.controller;

import cn.hutool.json.JSONUtil;
import com.shanzhu.beadhouse.entity.base.Result;
import com.shanzhu.beadhouse.entity.po.DialogTestEntity;
import com.shanzhu.beadhouse.entity.query.PageDepositRechargeByKeyQuery;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/dialog")
public class DialogTestController {
    @PostMapping("/post")
    public Result post( @RequestBody DialogTestEntity entity){
        return Result.success(JSONUtil.toJsonStr(entity));
    }

    @GetMapping ("/get")
    public Result get(){

        DialogTestEntity entity = new DialogTestEntity();
        entity.setAge(21);
        entity.setName("桐大将军");
        return Result.success(entity);
    }
}
